﻿{layout:default} {class:Shop.Admin.order.Order_ProPerty}
<lbhead>
    <title><%=Tag("订单调查")%>-<%=site.title%></title>
</lbhead>
<lbpath>
    <div class="tools">
        <ul>
            <%if (PageReturnMsg == ""){%>
            <li class="del"><a href="javascript:void(0);" onclick="DelObj();"><b></b><span><%=Tag("删除")%></span></a></li>
            <%}%>
            <li class="name"><span id="navIgation"><%=Tag("当前位置")%>：<a href="<%=site.AdminPath %>/Ajax/ajax_admin.aspx?__Action=MenuJump&pid=0"><%=Tag("管理首页")%></a> > <%=Tag("订单调查")%></span></li>
        </ul>
    </div>
</lbpath>
<lbbody>
    <div class="searchbox">
        <input type="text" name="dateFrom" id="dateFrom" size="12" class="input-calendar" value="<%=dateFrom %>" /> - <input type="text" name="dateTo" id="dateTo" size="12" class="input-calendar" value="<%=dateTo %>" />
        <input type="text" id="key" name="key" class="input-query"value="<%=key %>" onkeydown="if(event.keyCode==13){search_();}" /><input type="button" id="btnSou" class="btn-query" onclick="search_();" align="absmiddle" />
    </div>
    <table class="datalist">
        <tr class="title">
           <th style="width: 40px" class="selectAll">
                <a href="javascript:void(0);" onclick="$('input[name=\'id\']').attr('checked',!$(this).attr('checked'));$(this).attr('checked',!$(this).attr('checked'));"><%=Tag("全选")%></a>
            </th>
            <th width="120px">
                <%=Tag("订单编号")%>
            </th>
            <th width="300px">
                <%=Tag("名称")%>
            </th>
            <th width="200px">
                <%=Tag("内容")%>
            </th>
            <th width="130px">
                <%=Tag("日期")%>
            </th>
            <th>
                <%=Tag("会员")%>
            </th>
        </tr>
        <%foreach (Shop.Model.Lebi_Order_ProPerty model in models)
          {%>
        <tr class="list" ondblclick="Edit(<%=model.id %>);">
            <td style="text-align:center">
                <input type="checkbox" name="id" value="<%=model.id %>" del="true" />
            </td>
            <td>
                <a target="_blank" href="<%=GetOrder(model.Order_id).Type_id_OrderType==212?"t":"" %>order_view.aspx?id=<%=model.Order_id %>"><%=model.Order_Code %></a>
            </td>
            <td>
                <%=Lang(model.ProPertyName)%>
            </td>
            <td>
            <%if (model.ProPertyid == 0){ %>
                <%=model.ProPertyValue%>
            <%}else{ %>
                <%=Lang(model.ProPertyValue)%>
            <%} %>
            </td>
            <td>
                <%=FormatTime(model.Time_Add) %>
            </td>
            <td>
                <%=model.User_UserName %>
            </td>
        </tr>
        <%} %>
    </table>
    <script type="text/javascript">
        function search_() {
            var key = $("#key").val();
            var dateFrom = $("#dateFrom").val();
            var dateTo = $("#dateTo").val();
            window.location = "?key=" + escape(key) + "&dateFrom=" + dateFrom + "&dateTo=" + dateTo;
        }
        function DelObj(id) {
            if (!confirm("<%=Tag("确认要删除吗？")%>"))
                return false;
            var postData = GetFormJsonData("del");
            var url = "<%=site.AdminPath %>/ajax/ajax_order.aspx?__Action=Order_ProPerty_Del";
            RequestAjax(url,postData,function(){MsgBox(1, "<%=Tag("操作成功")%>", "?")});
        }
    </script>
</lbbody>
<lbbottom>
    <div class="bottom" id="body_bottom">
    <%=PageString%>
</div>
</lbbottom>